<?php

namespace app\index\model;

use think\Model;

/*
 * 老板店铺关联
 */

class StaffStore extends Model
{
    /*
     * 店铺
     */
    public function store()
    {
        return $this->belongsTo('Store', 'store_id', 'id')
            ->field('id, store_name, img, auditstore');
    }

    /*
     * 老板信息
     */
    public function staff()
    {
        return $this->belongsTo('Staff', 'staff_id', 'id')
            ->field('id, telephone');
    }

}